package main

import (
	"matrix/backend/handler"
	"net/http"
)

func main() {
	// http.HandleFunc("/user/register", handler.HTTPInterceptor(handler.RegisterHandler)) this is example
	http.HandleFunc("/user/register", handler.RegisterHandler)
	http.HandleFunc("/user/login", handler.LoginHandler)
	http.HandleFunc("/file/createcatalog", handler.CcatalogHandler)
	http.HandleFunc("/file/deletefile", handler.DeleteFileHandler)
	http.HandleFunc("/file/renamefile", handler.RenameFileHandler)
	http.HandleFunc("/file/movefile", handler.MoveFileHandler)
	http.HandleFunc("/file/filelist", handler.FileListHandler)
	http.ListenAndServe(":8080", nil)
}
